<include file="Public:header" />

<style>
@media (min-width: 50px){
	     .nav-justified>li{
		display: table-cell;
		width: 1%;
	}
	   }
.panel-body {
    padding: 5px 5px;
}
.panel{margin-bottom:0px;}
.nav-justified>li>a{margin-bottom:0; border-radius:0;}
</style>
    
    <div class="goods" style="padding:10px 5px;">
    <div class="panel panel-info">
      <div class="panel-heading">
        <h3 class="panel-title">订单详情</h3>
      </div>
      
      <div class="panel-body" style="background:#fff;">
        <ul class="list-group">
            <li class="list-group-item">
                <p class="text-left">订单状态:
                
                <if condition="$order.status eq 0"><strong style="color:red;">退货</strong><elseif condition="$order.status eq 1"/><strong style="color:red;">待付款</strong><elseif condition="$order.status eq 2"/><strong>已付款</strong><elseif condition="$order.status eq 3"/><strong>已发货</strong><else /><strong>已完成</strong></if>
                
                </p>
                <p class="text-left">订单编号：{$order.ordernumber}</p>
                <p class="text-left">订单金额：{$order.total}</p>
                <p class="text-left">下单时间: {$order.create_time|date='Y-m-d',###}</p>
            </li>
            <li class="list-group-item">
                <p class="text-left">收货人姓名：{$order.yourname}</p>
                <p class="text-left">详细地址：{$order.address}</p>
                <p class="text-left">电话号码：{$order.tel}</p>
            </li>
         </ul>
      </div>
      
    </div>
    
    </div>
  
    <div class="goods" style="padding:0px 5px;">
      <div class="panel panel-info">
        <div class="panel-heading">商品列表:
        </div>
        <volist name="goods" id="vo"> 
        <div class="panel-body" style="background:#fff;">
          <div class="row">
            <div class="col-xs-4" style="text-align:left"><a href="{:getArtLink($vo['id'],1)}"><img src="__PUBLIC__{$vo.img_url}" width="80" height="80"></a>
            </div>
            <div class="col-xs-8"><span style="color:rgba(59,53,53,1.00); font-family:'微软雅黑'; ">{$vo.title}</span></div>
          </div>
          <hr>
          <div class="row" style="padding:0px;">
            <div class="col-xs-5" style="text-align:left;"><span style="color:rgba(189,174,174,1.00); font-family:'微软雅黑';">总价&nbsp;&nbsp;</span><strong style="color:rgba(205,120,121,1.00)">{$vo.total}</strong>
            
            
            <p><?php if(!empty($vo['attrmes'][0])){?>
             <span style="color:rgba(203,189,190,1.00)">规格:&nbsp;&nbsp;</span>
             <?php foreach($vo['attrmes'] as $vos){?>
              <span><?php echo $vos ?>&nbsp;&nbsp;</span>
            <?php }?>
            <?php }?></p>
            </div>
           
            <div class="col-xs-7" style="text-align:right;">
            <a href="http://m.kuaidi100.com/result.jsp?nu={$vo.logistics_num}"><button type="button" class="btn btn-default">查看物流</button></a>
            
            <if condition="$order.status eq 2 && $vo['confirm'] eq 1">
            <a href="{:U('returngoods',array('order_id'=>$order['id'],'goods_id'=>$vo['id']))}"><button type="button" class="btn btn-danger">申请售后</button></a>        
            </if>
            
             <if condition="$order.status eq 2 && $vo['confirm'] eq 0">
            <a href="{:U('confirmgoods',array('sale_id'=>$vo['sale_id'],'goods_id'=>$vo['id']))}"><button type="button" class="btn btn-success">确认收货</button></a>        
            </if>
            
            </div>
            
          </div>
          
          <hr>
      </div>
     </volist>
    </div>
    </div>

<include file="Public:footer" />